<?php

/**
 * MaterialI18n form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class MaterialI18nForm extends BaseMaterialI18nForm
{
  public function configure()
  {
  	
  	  $this->setWidgets(array(
      'material_id'        => new sfWidgetFormInputHidden(),
      'culture'            => new sfWidgetFormInputHidden(),
      'ifull_description'  => new sfWidgetFormCKEditor (array('jsoptions'=>array('filebrowserBrowseUrl'=>"'/ckfinder/ckfinder.html'",
  	                                                                             'filebrowserUploadUrl' => "'/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'",
                                                                                 'toolbar ' => "[['Source','Font', 'FontSize', 'TextColor', 'Bold', 'Italic','PasteFromWord', 'PasteText', 'Table', 'Link', 'Image', 'ImageButton']]")) ),
  	  'ishort_description'  => new sfWidgetFormCKEditor ( array('jsoptions'=>array('toolbar ' => "[['Source','Font', 'FontSize', 'TextColor', 'Bold', 'Italic','PasteFromWord', 'PasteText', 'Table', 'Link', 'Image', 'ImageButton']]")) ),
      'ititle'             => new sfWidgetFormInput(),
  	  'seo_idescription'   => new sfWidgetFormTextarea(),
      'seo_ikeyword'       => new sfWidgetFormTextarea(),
      'seo_ititle'         => new sfWidgetFormInput(),
    ));

   
    $this->widgetSchema->setNameFormat('material_i18n[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
  	
  }
}
